<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<meta name="viewport" content="width=device-width initial-scale=1.0" />
		<title>双向链表</title>
	</head>
	<body>
		<script src="index.js"></script>
		<script>
			let doubleLinkedList = new DoubleLinkedList()
			doubleLinkedList.append('a')
			doubleLinkedList.append('b')
			doubleLinkedList.append('c')
			// const res = doubleLinkedList.insert(3, 'd')

			// const res = doubleLinkedList.get(2)
			// const res = doubleLinkedList.indexOf('c')
			// const res = doubleLinkedList.removeAt(2)
			const res = doubleLinkedList.removeAt(1)
			// const res = doubleLinkedList.update(1, 'b')
			console.log(res)
			console.log(doubleLinkedList.toString())
			console.log(doubleLinkedList.size())
		</script>
	</body>
</html>
